package com.kaigejava.springcloud.dao;

import com.kaigejava.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author kaigejava
 * payment表操作的类-重构之前
 * 这里主要不是讲业务。这里凯哥就写两个代表性的
 * 新增
 * 查询
 */
@Mapper
public interface PaymentDao {

    /**
     * 新增
     * @param payment
     * @return
     */
    public int create(Payment payment);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    public Payment getPaymentById(@Param("id") Long id);
}
